<?php
error_reporting(0);

include_once 'classes/design.php';
include_once 'classes/simplepie.inc';

$design = new Design();
$design->imprimir_topo();

$feed = new SimplePie("http://joaopribs.wordpress.com/feed/");

$items = $feed->get_items(0, 10);
?>

<h1>Blog</h1>
I currently write a <a href="http://joaopribs.wordpress.com" target="_blank">blog</a>, where I put some simple tips and interesting things on the technologies I'm working with. To view it in full, please access <a href="http://joaopribs.wordpress.com" target="_blank">http://joaopribs.wordpress.com</a>.
<p/>
The following are the latest 10 posts

<?php
foreach ($items as $item) {
	$data = $item->get_date();
	echo "<h2 style=\"margin-top: 50px;\">".$item->get_title()."</h2>";
	echo "<font color=\"#777777\">Published on $data - <a href=\"".$item->get_permalink()."\" target=\"_blank\">Link</a></font>";
	echo $item->get_content();
}



$design->imprimir_rodape();
?>